from selenium import webdriver
dr=webdriver.Firefox()
dr.implicitly_wait(20)
dr.get("http://localhost/dbshop/")
dr.find_element_by_link_text("注册").click()
dr.find_element_by_id("user_name").send_keys("test35")
dr.find_element_by_id("user_password").send_keys("123456")
dr.find_element_by_id("user_com_passwd").send_keys("123456")
dr.find_element_by_id("user_email").send_keys('121518@qq.com')
dr.find_element_by_id("agreement").click()
dr.find_element_by_xpath('//button[@type="submit"]').click()
dr.find_element_by_link_text("退出").click()

